
package com.idealighter.game.games.foursshop.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.foursshop.manager.FoursShopMgr;
import com.idealighter.game.games.foursshop.message.ReqCancelBankerMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(504122)
public class ReqCancelBankerHandler implements ReqMessageHandler {

  @Inject
  FoursShopMgr foursShopMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqCancelBankerMsg msg = (ReqCancelBankerMsg) message;
    foursShopMgr.cancleOnBanker(player, msg.getRoomId(), msg.getTableId());

    return null;
  }
}
